import request from '@/config/axios'
import type { ReservationPrepay } from './types'

export const getReservationPrepayListApi = (params: any): Promise<IResponse> => {
  return request.get({ url: '/reservation-prepay', params })
}

export const updateReservationPrepayApi = (
  id: string,
  data: Partial<ReservationPrepay>
): Promise<IResponse> => {
  return request.put({ url: `/reservation-prepay/id/${id}`, data })
}

export const getReservationPrepayDetailApi = (
  id: string
): Promise<IResponse<ReservationPrepay>> => {
  return request.get({ url: `/reservation-prepay/id/${id}` })
}
